package cz.muni.fi.pa165.languageschool.rest;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;

/**
 * REST root services resource
 *
 * @author Michal
 */
@Path("service")
public class ServiceResource {

    @Context
    private UriInfo context;

    public ServiceResource() {
    }

    @GET
    @Produces("text/plain")
    public String getText() {
        return "Greetings from LanguageSchool REST API. \n Use following URLs: \n "
                + "/rest/courses FOR plaintext of all courses \n "
                + "/rest/courses/{id} FOR plaintext of id identified course \n"
                + "/rest/courses/json FOR all courses json format \n "
                + "/rest/courses/json/{id} FOR one course within json format \n \n"
                + "/rest/students FOR plaintext output of all students \n "
                + "/rest/students/{id} FOR one student of passed id \n "
                + "/rest/students/json/ FOR all students within json format \n "
                + "/rest/students/json/{id} FOR only one student element of passed id \n";
    }
}
